<template>
  <div>
    <h1 style="text-align: center">欢迎来到主页</h1>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>项目简介</span>
        <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
      </div>
      <div v-for="o in description" :key="o.id" class="text item">
        {{ o.name }} : {{ o.des }}
      </div>
    </el-card>
  </div>
</template>

<script>

export default {
  name: "Home",
  data() {
    return {
      description: [
        {id: 1, name: "前台技术", des: "Vue2"},
        {id: 2, name: "后台技术", des: "Springboot2.7"},
        {id: 3, name: "使用说明", des: "注册直接使用"},
        {id: 4, name: "作者推荐", des: "做项目不要急躁，慢慢来"},
        {id: 5, name: "项目源码", des: " https://gitee.com/xqnode/pure-design-copy\n"},
      ]
    }
  },
}
</script>

<style scoped>
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both
}

.box-card {
  width: 480px;
}
</style>